import IconSearchBar from '@/assets/svg/icon-search-bar'
import React, { memo } from 'react'
import { useNavigate } from 'react-router-dom'
import Center from './style'
const index = memo(() => {
  const nav = useNavigate();

  const search = ()=>{
    nav("/entire")
  }
  return (
    <Center>
      <div className="search">
      <input type="text" placeholder='搜索房源和体验' name="" id="" />
      <div className="icon" onClick={search}>
      <IconSearchBar/>
      </div>
      </div>
    </Center>
  )
})

export default index